

#include <SFML/Audio.hpp>
#include <iostream>
 
#include "image_manager.h"
 
using namespace std;
 
ImageManager gImageManager;
 


sf::Image* ImageManager::load( const std::string& strId ) {
    sf::Image* image = new sf::Image();
    if( !image->LoadFromFile( strId ) ) {
        cout << "[WARN] ImageManager failed to load: " << strId << endl;
        delete image;
        image = NULL;
    }
 
	image->CreateMaskFromColor(sf::Color(255, 0, 255));
    return image;
}